<script setup lang="ts">
import { onShow } from '@dcloudio/uni-app'
import CartMain from './components/CartMain.vue'
import { nextTick, ref } from 'vue'

const forceRefresh = ref(false)
onShow(async () => {
  forceRefresh.value = false
  await nextTick()
  forceRefresh.value = true
})
</script>

<template>
  <view class="cart2">
    <CartMain v-if="forceRefresh" />
  </view>
</template>

<style>
.cart2 {
  height: 100vh;
}
</style>
